package com.aash.web.wicket;

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
import org.springframework.stereotype.Component;

import com.aash.web.wicket.page.HomePage;

@Component
public class GaeWicketApplication extends WebApplication {
	@Override
	public Class<? extends Page> getHomePage() {
		return HomePage.class;
	}

	@Override
	protected void init() {
		super.init();
		setPageManagerProvider(new CustomPageManagerProvider(this));
		getComponentInstantiationListeners().add(new SpringComponentInjector(this));
		getResourceSettings().setResourcePollFrequency(null);
	}
}
